﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Yipusoft.Account.BLL;
using Yipusoft.Account.Model;
using Yipusoft.WorkTaskGrade.BLL;
using Yipusoft.WorkTaskGrade.Model;
using Yipusoft.Evaluate.Model;
using Yipusoft.Evaluate.BLL;

public partial class Task_WorkTask_BonusPoint : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Guid id = new Guid(Request["id"]);
            WorkTaskGrade Task = new WorkTaskGrade();
            WorkTaskGradeInfo info = Task.GetDetail(id);
            TextBox1.Text = info.BonusPoint.ToString("0.00");
        }
    }
    protected void LinkButton1_Click(object sender, EventArgs e)
    {
        try
        {
            Guid id = new Guid(Request["id"]);
            WorkTaskGrade Task = new WorkTaskGrade();
            WorkTaskGradeInfo info = Task.GetDetail(id);
            info.BonusPoint = Convert.ToDecimal(TextBox1.Text);
            Task.Update(info);
            string strScr = "<script language=javascript>   window.close(); </script>";
            Page.RegisterClientScriptBlock("Close", strScr);
        }
        catch (Exception ex)
        {
            Prompt.Text = "提示：" + ex.Message;
        }
    }
}
